function showtab(btnid,tabid,tabnumber)
{
	for (i = 1;i<=tabnumber;i++)
	{
		document.getElementById(tabid+"_btn"+i).className = "tabpane";
		document.getElementById(tabid+"_sub"+i).className = "hide";
	}
	document.getElementById(tabid+"_btn"+btnid).className = "select";
	document.getElementById(tabid+"_sub"+btnid).className = "";
}

function showtab_soft(btnid,tabid,tabnumber)
{
	for (i = 1;i<=tabnumber;i++)
	{
		document.getElementById(tabid+"_btn_s"+i).className = "tabpane";
		document.getElementById(tabid+"_sub_s"+i).className = "hide";
	}
	document.getElementById(tabid+"_btn_s"+btnid).className = "select";
	document.getElementById(tabid+"_sub_s"+btnid).className = "";
}

function doClick_down(o){
	 o.className="select";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="down"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_con"+i);
	   if(id != o.id){
	   	 j.className="";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }